package MULE.Model;

public class SavedGame implements java.io.Serializable {

	private Game game;
	private Inventory storehouse;
	private int currentRound;
	private Player currentPlayer;
	private int remainingTime;

	/**
	 * Sets the saved game object.
	 * 
	 * @param g
	 *            Game object to save.
	 */
	public void setGame(Game g) {
		game = g;
	}

	/**
	 * Returns the saved game object.
	 * 
	 * @return Saved game object.
	 */
	public Game getGame() {
		return game;
	}

	/**
	 * Sets the saved store object.
	 * 
	 * @param s
	 *            Saved store object.
	 */
	public void setStorehouse(Inventory s) {
		storehouse = s;
	}

	/**
	 * Returns the saved store object.
	 * 
	 * @return Saved store object.
	 */
	public Inventory getStorehouse() {
		return storehouse;
	}

	/**
	 * Sets the saved current round.
	 * 
	 * @param r
	 *            Saved current round.
	 */
	public void setCurrentRound(int r) {
		currentRound = r;
	}

	/**
	 * Returns the saved current round.
	 * 
	 * @return Saved current round.
	 */
	public int getCurrentRound() {
		return currentRound;
	}

	/**
	 * Sets the saved remaining time.
	 * 
	 * @param time
	 *            Remaining time.
	 */
	public void setRemainingTime(int time) {
		remainingTime = time;
	}

	/**
	 * Returns the saved remaining time,
	 * 
	 * @return Saved remaining time.
	 */
	public int getRemainingTime() {
		return remainingTime;
	}

	/**
	 * Sets the saved current player.
	 * 
	 * @param p
	 *            Current player.
	 */
	public void setCurrentPlayer(Player p) {
		currentPlayer = p;
	}

	/**
	 * Returns the saved current player.
	 * 
	 * @return Saved current player.
	 */
	public Player getCurrentPlayer() {
		return currentPlayer;
	}
}
